
package org.springxrsk.modules.classes.service.impl;

import org.springxrsk.modules.classes.pojo.entity.QyTaskEntity;
import org.springxrsk.modules.classes.pojo.vo.QyTaskVO;
import org.springxrsk.modules.classes.excel.QyTaskExcel;
import org.springxrsk.modules.classes.mapper.QyTaskMapper;
import org.springxrsk.modules.classes.service.IQyTaskService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springxrsk.core.mp.base.BaseServiceImpl;
import java.util.List;

/**
 * 作业管理 服务实现类
 *
 *  @author
 * @since 2024-06-15
 */
@Service
public class QyTaskServiceImpl extends BaseServiceImpl<QyTaskMapper, QyTaskEntity> implements IQyTaskService {

	@Override
	public IPage<QyTaskVO> selectQyTaskPage(IPage<QyTaskVO> page, QyTaskVO qyTask) {
		return page.setRecords(baseMapper.selectQyTaskPage(page, qyTask));
	}


	@Override
	public List<QyTaskExcel> exportQyTask(Wrapper<QyTaskEntity> queryWrapper) {
		List<QyTaskExcel> qyTaskList = baseMapper.exportQyTask(queryWrapper);
		//qyTaskList.forEach(qyTask -> {
		//	qyTask.setTypeName(DictCache.getValue(DictEnum.YES_NO, QyTask.getType()));
		//});
		return qyTaskList;
	}

}
